<!DOCTYPE html>
<html lang="en">
<head>
  <meta charset="UTF-8">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <title>Document</title>
</head>
<body>
  <script>
    // 替换
    // 如果要替换多个关键字，要结合正则，以后学了再说
    var str = 'hello TMD string'
    var str1 = str.replace('TMD', '***')
    console.log(str1)
  </script>
</body>
</html>